package com.plian.system.entity.pm.listedcompany;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@TableName("pm_ten_share_holders")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "TenShareHolders对象", description = "上市公司-十大股东")
public class TenShareHolders extends BaseEntity {

    @ApiModelProperty(value = "父类上市公司Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long baseFirmId;

    @ApiModelProperty(value = "序号")
    private Integer serialNumber;

    @ApiModelProperty(value = "持有数量（股）")
    private String shareAmount;

    @ApiModelProperty(value = "机构或基金名称")
    private String fundName;

    @ApiModelProperty(value = "持股变化（股）")
    private String shareChange;

    @ApiModelProperty(value = "占总股本比例")
    private String shareProportion;

    @ApiModelProperty(value = "实际增减持")
    private String inOrDeHolding;

    @ApiModelProperty(value = "股份类型")
    private String shareTypeId;

    @TableField(exist = false)
    @ApiModelProperty(value = "上市公司名称")
    private String listedFirmName;

}
